//
// Created by 王小平 on 2024/7/7.
//
#include "iostream"

using namespace std;

//定义全局变量
int number = 1;

int main() {
    //定义 int 2 变量
    int a = 1, b = 2;
    cout << "a = " << a << "\n";
    b = 10;
    cout << "b = " << b << "\n";

    //定义局部变量
    int number = 2;
    //输出信息
    cout << "number局部变量：" << number << endl;
    cout << "number全局变量：" << ::number << endl;


    return 0;
}
